Skip to content

Deprecated the old Material Design 2 theme to avoid using it#6815

Open
TimoPtr wants to merge 1 commit intomainfrom
feature/deprecate_old_theme
Open

Deprecated the old Material Design 2 theme to avoid using it#6815
TimoPtr wants to merge 1 commit intomainfrom
feature/deprecate_old_theme

Conversation

@TimoPtr
Copy link
Copy Markdown
Member

@TimoPtr TimoPtr commented May 7, 2026

Summary

We are in the middle of migrating to Material Design 3, we kept the HomeAssistantAppTheme for backward compatibility for screen that are not yet merged. This PR simply deprecates it so new contributors knows that we are migrating.

Copilot AI review requested due to automatic review settings May 7, 2026 09:20
@TimoPtr TimoPtr requested a review from jpelgrom May 7, 2026 09:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Deprecates the legacy Compose Material Design 2 theme wrapper (HomeAssistantAppTheme) to discourage new usage during the ongoing migration to the Material Design 3-based HATheme.

Changes:

  • Marked HomeAssistantAppTheme as @Deprecated with guidance to use HATheme instead
  • Added an IDE auto-fix suggestion via ReplaceWith to ease migration of call sites

@jpelgrom
Copy link
Copy Markdown
Member

jpelgrom commented May 7, 2026

Not sure about the autofix suggestion - it is not a drop in replacement and you might end up with contributors mixing M2 with M3 components which is also undesirable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants